home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
001-025
/
disk_023
/
ver30
/
sys
/
msdos
/
ttyio.c
< prev
Wrap
C/C++ Source or Header
|
1992-05-06
|
607b
|
55 lines
/*
* Name: MicroEMACS
* MS-DOS terminal I/O.
* Version: 29
* Last edit: 05-Feb-86
* By: rex::conroy
* decvax!decwrl!dec-rhea!dec-rex!conroy
*/
#include "def.h"
#include <dos.h>
int nrow; /* Terminal size, rows. */
int ncol; /* Terminal size, columns. */
/*
* Initialization.
* Almost no operation in MS-DOS.
*/
ttopen()
{
nrow = NROW;
ncol = NCOL;
}
/*
* No operation in MS-DOS.
*/
ttclose()
{
}
/*
* Write character.
*/
ttputc(c)
{
dosb(CONDIO, c, 0);
}
/*
* No operation in MS-DOS.
*/
ttflush()
{
}
/*
* Read character.
*/
ttgetc()
{
return (dosb(CONRAW, 0, 0));
}